package pl.softech.oldchart;

import java.awt.Dimension;
import java.util.Collection;
import java.util.LinkedList;

import javax.swing.JFrame;

import pl.softech.oldchart.Graph2D;
import pl.softech.oldchart.IGraph2DModel;


public class Example1 {

	
	public static void main(String[] args) {
		
		SimpleData1 data1 = new SimpleData1();
		SimpleData2 data2 = new SimpleData2();
		SimpleData3 data3 = new SimpleData3();
		SimpleData4 data4 = new SimpleData4();
		SimpleData5 data5 = new SimpleData5();
		data5.setDrawCoordinates(false);
//		data2.setDrawCoordinates(false);
//		data3.setDrawCoordinates(false);
		Collection<IGraph2DModel> models = new LinkedList<IGraph2DModel>();
//		models.add(data1);
//		models.add(data2);
//		models.add(data3);
//		models.add(data4);
		models.add(data5);
		Graph2D panel = new Graph2D(models);
		panel.setAutoCreateXAxisLabels(true);
		panel.setAutoCreateYAxisLabels(true);
		//panel.setShowXAxisLabels(false);
		//panel.setShowYAxisLabels(false);
//		GraphLegendFactory factory = new GraphLegendFactory(models);
//		
//		JPanel p = factory.createSimpleGraphLegend();
		
		JFrame frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setContentPane(panel);
//		frame.setContentPane(p);
		frame.setSize(new Dimension(1024,768));
		frame.setVisible(true);
	}
	
}
